x86/mm: put nested p2m code under CONFIG_HVM
authorWei Liu <wei.liu2@citrix.com>
Fri, 21 Sep 2018 15:54:50 +0000 (16:54 +0100)
committerWei Liu <wei.liu2@citrix.com>
Mon, 24 Sep 2018 16:45:36 +0000 (17:45 +0100)
commit9629b62005fa88424a4f48102848c4524d0341e3
tree1077b87da01e72181c2f90d625e6be933e0429c1
parent72a901d7a04305f24f7b1e723e6cf18c744cff95
x86/mm: put nested p2m code under CONFIG_HVM

These functions are only useful for nested hvm, which isn't enabled
when CONFIG_HVM is false.

Enclose relevant code and fields in CONFIG_HVM.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
xen/arch/x86/mm/p2m.c
xen/include/asm-x86/domain.h
xen/include/asm-x86/p2m.h